import java.util.Scanner;

public class sanyuanyunsuanfu2 {
    public static void main(String[] args) {
        System.out.println("请输入第一个和尚的身高：");
        Scanner sc = new Scanner(System.in);
        int height1 = sc.nextInt();
        System.out.println("请输入第二个和尚的身高：");
        int height2 = sc.nextInt();
        System.out.println("请输入第三个和尚的身高：");
        int height3 = sc.nextInt();
        int result = height1 > height2 ? height1 : height2;
        int temp = result > height3 ? result : height3;
        System.out.println("最高的身高是：" + temp);
        sc.close();
    }
}
